﻿<?xml version="1.0" encoding="utf-8"?>
<xs:schema id="DataSet2" targetNamespace="http://tempuri.org/DataSet2.xsd" xmlns:mstns="http://tempuri.org/DataSet2.xsd" xmlns="http://tempuri.org/DataSet2.xsd" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" xmlns:msprop="urn:schemas-microsoft-com:xml-msprop" attributeFormDefault="qualified" elementFormDefault="qualified">
  <xs:annotation>
    <xs:appinfo source="urn:schemas-microsoft-com:xml-msdatasource">
      <DataSource DefaultConnectionIndex="0" FunctionsComponentName="QueriesTableAdapter" Modifier="AutoLayout, AnsiClass, Class, Public" SchemaSerializationMode="IncludeSchema" xmlns="urn:schemas-microsoft-com:xml-msdatasource">
        <Connections>
          <Connection AppSettingsObjectName="MySettings" AppSettingsPropertyName="TravConnectionString" ConnectionStringObject="" IsAppSettingsProperty="true" Modifier="Assembly" Name="TravConnectionString (MySettings)" PropertyReference="ApplicationSettings.AdminPanel.My.MySettings.GlobalReference.Default.TravConnectionString" Provider="System.Data.OleDb" />
        </Connections>
        <Tables>
          <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="priveleged_membersTableAdapter" GeneratorDataComponentClassName="priveleged_membersTableAdapter" Name="priveleged_members" UserDataComponentName="priveleged_membersTableAdapter">
            <MainSource>
              <DbSource ConnectionRef="TravConnectionString (MySettings)" DbObjectName="Travian.dbo.priveleged_members" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetData" UserSourceName="Fill">
                <DeleteCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>DELETE FROM [Travian].[dbo].[priveleged_members] WHERE (([PID] = ?) AND ((? = 1 AND [Access_lvl] IS NULL) OR ([Access_lvl] = ?)))</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="Original_PID" Precision="0" ProviderType="Integer" Scale="0" Size="0" SourceColumn="PID" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="IsNull_Access_lvl" Precision="0" ProviderType="Integer" Scale="0" Size="0" SourceColumn="Access_lvl" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="Original_Access_lvl" Precision="0" ProviderType="Integer" Scale="0" Size="0" SourceColumn="Access_lvl" SourceColumnNullMapping="false" SourceVersion="Original" />
                    </Parameters>
                  </DbCommand>
                </DeleteCommand>
                <InsertCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>INSERT INTO [Travian].[dbo].[priveleged_members] ([Access_lvl]) VALUES (?)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="Access_lvl" Precision="0" ProviderType="Integer" Scale="0" Size="0" SourceColumn="Access_lvl" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </InsertCommand>
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>SELECT PID, Access_lvl FROM dbo.priveleged_members</CommandText>
                    <Parameters />
                  </DbCommand>
                </SelectCommand>
                <UpdateCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>UPDATE [Travian].[dbo].[priveleged_members] SET [Access_lvl] = ? WHERE (([PID] = ?) AND ((? = 1 AND [Access_lvl] IS NULL) OR ([Access_lvl] = ?)))</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="Access_lvl" Precision="0" ProviderType="Integer" Scale="0" Size="0" SourceColumn="Access_lvl" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="Original_PID" Precision="0" ProviderType="Integer" Scale="0" Size="0" SourceColumn="PID" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="IsNull_Access_lvl" Precision="0" ProviderType="Integer" Scale="0" Size="0" SourceColumn="Access_lvl" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="Original_Access_lvl" Precision="0" ProviderType="Integer" Scale="0" Size="0" SourceColumn="Access_lvl" SourceColumnNullMapping="false" SourceVersion="Original" />
                    </Parameters>
                  </DbCommand>
                </UpdateCommand>
              </DbSource>
            </MainSource>
            <Mappings>
              <Mapping SourceColumn="PID" DataSetColumn="PID" />
              <Mapping SourceColumn="Access_lvl" DataSetColumn="Access_lvl" />
            </Mappings>
            <Sources />
          </TableAdapter>
        </Tables>
        <Sources />
      </DataSource>
    </xs:appinfo>
  </xs:annotation>
  <xs:element name="DataSet2" msdata:IsDataSet="true" msdata:UseCurrentLocale="true" msprop:EnableTableAdapterManager="True" msprop:Generator_DataSetName="DataSet2" msprop:Generator_UserDSName="DataSet2">
    <xs:complexType>
      <xs:choice minOccurs="0" maxOccurs="unbounded">
        <xs:element name="priveleged_members" msprop:Generator_TableClassName="priveleged_membersDataTable" msprop:Generator_TableVarName="tablepriveleged_members" msprop:Generator_TablePropName="priveleged_members" msprop:Generator_RowDeletingName="priveleged_membersRowDeleting" msprop:Generator_UserTableName="priveleged_members" msprop:Generator_RowChangingName="priveleged_membersRowChanging" msprop:Generator_RowEvHandlerName="priveleged_membersRowChangeEventHandler" msprop:Generator_RowDeletedName="priveleged_membersRowDeleted" msprop:Generator_RowEvArgName="priveleged_membersRowChangeEvent" msprop:Generator_RowChangedName="priveleged_membersRowChanged" msprop:Generator_RowClassName="priveleged_membersRow">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="PID" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_ColumnVarNameInTable="columnPID" msprop:Generator_ColumnPropNameInRow="PID" msprop:Generator_ColumnPropNameInTable="PIDColumn" msprop:Generator_UserColumnName="PID" type="xs:int" />
              <xs:element name="Access_lvl" msprop:Generator_ColumnVarNameInTable="columnAccess_lvl" msprop:Generator_ColumnPropNameInRow="Access_lvl" msprop:Generator_ColumnPropNameInTable="Access_lvlColumn" msprop:Generator_UserColumnName="Access_lvl" type="xs:int" minOccurs="0" />
            </xs:sequence>
          </xs:complexType>
        </xs:element>
      </xs:choice>
    </xs:complexType>
    <xs:unique name="Constraint1" msdata:PrimaryKey="true">
      <xs:selector xpath=".//mstns:priveleged_members" />
      <xs:field xpath="mstns:PID" />
    </xs:unique>
  </xs:element>
</xs:schema>